<%-- 
    Document   : searchloan
    Created on : May 20, 2012, 3:26:45 PM
    Author     : Jayson Kiong
--%>

<%@page import="Model.Loan"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="quicklendjs.js"></script>
        <link rel = "stylesheet" type = "text/css" href = "quicklendstyle.css"/>
        <title>JSP Page</title>
    </head>
    <body>
        <%
          ArrayList loanar = (ArrayList)session.getAttribute("loanlist");
          int loanarsize = loanar.size(),arctr;
          Loan loan = new Loan();
        %>
        <div id="contenttitle" style="position: absolute; top:13px; left:25px;">
            Search Loan Entry
        </div>
        
        <div id="typetable" style="position:absolute; top:70px; left:20px; font-family: segoe ui; font-size:11px; overflow: auto; width: 850px; height: 500px; padding:0px; margin: 0px">
                        <table border="1" cellspacing=0 cellpadding=2 style="height:100px">
                        <tr>
                            
                            <th width=250 bgcolor="lightgrey">Client Name</th>
                            <th width=250 bgcolor="lightgrey">Term No.</th>
                            <th width=230 bgcolor="lightgrey">Loan Amount</th>
                            <th width=250 bgcolor="lightgrey">Loan Date</th>
                            <th width=250 bgcolor="lightgrey">Collect Date</th>
                            <th width=250 bgcolor="lightgrey">Release Date</th>
                            <th width=250 bgcolor="lightgrey">Unofficial Release Date</th>
                            <th width=250 bgcolor="lightgrey">Unofficial Collect Date</th>
                            <th width=250 bgcolor="lightgrey">Date Released</th>
                            <th width=250 bgcolor="lightgrey">Check Date</th>
                            <th width=250 bgcolor="lightgrey">Bank Name</th>
                            <th width=250 bgcolor="lightgrey">Check Name</th>
                            <th width=250 bgcolor="lightgrey">Check No.</th>
                            <th width=250 bgcolor="lightgrey">Status</th>
                            <th width=250 bgcolor="lightgrey">Paid</th>
                            <th width=250 bgcolor="lightgrey">Function</th>
                            
                            
                        </tr>
                        <%arctr=0;
                        
                          for(int x=0;x<loanarsize;x++){
                          loan=(Loan)loanar.get(arctr); 
                          %>
                          <tr><td><%=loan.getStrClientName()%></td><td><%=loan.getiTermsid()%></td><td><%=loan.getfLoanamount()%></td><td><%=loan.getStrLoandate()%></td><td><%=loan.getStrCollectdate()%></td><td><%=loan.getStrReleasedate()%></td><td><%=loan.getStrUnreleasedate()%></td><td><%=loan.getStrUncollectdate()%></td><td><%=loan.getStrReleasedate()%></td><td><%=loan.getStrCheckdate()%></td><td><%=loan.getStrBankname()%></td><td><%=loan.getStrCheckname()%></td><td><%=loan.getStrCheckno()%></td><td><%=loan.getStrStatus()%></td><td><%=loan.getStrPaid()%></td><td><input type="button" name="select" value="Select" style="background-color:#49743D;font-weight:bold;color:#ffffff;" onclick="selectLoan(<%=loan.getiLoanid()%>)"></td></tr> 
                          <%arctr++;}%>
                        
                        </table>
        </div>
    </body>
</html>
